package br.edu.fanor.esfinge.interceptor;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

public class UsuarioInterceptor {
	
	@AroundInvoke
	public Object meuInterceptor(InvocationContext context) throws Exception {
		
		System.out.println("Classe: "+context.getTarget().getClass().getSimpleName());
		System.out.println("Método: "+context.getMethod().getName());
		
		return context.proceed();
	}
}
